package com.ruoyi.yipaiju.service.impl;

import java.util.List;

import com.ruoyi.common.core.domain.entity.XcxUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yipaiju.mapper.GroupMapper;
import com.ruoyi.yipaiju.domain.Group;
import com.ruoyi.yipaiju.service.IGroupService;

/**
 * fo_groupService业务层处理
 * 
 * @author liuwp
 * @date 2023-03-01
 */
@Service
public class GroupServiceImpl implements IGroupService 
{
    @Autowired
    private GroupMapper groupMapper;

    /**
     * 查询fo_group
     * 
     * @param id fo_group主键
     * @return fo_group
     */
    @Override
    public Group selectGroupById(Long id)
    {
        return groupMapper.selectGroupById(id);
    }

    /**
     * 查询fo_group列表
     * 
     * @param group fo_group
     * @return fo_group
     */
    @Override
    public List<Group> selectGroupList(Group group)
    {
        return groupMapper.selectGroupList(group);
    }

    @Override
    public List<XcxUser> selectGroupUserList(Group group) {
        return groupMapper.selectGroupUserList(group);
    }

    /**
     * 根据业务主键查询一条记录：fo_group
     *
     * @param group fo_group
     * @return fo_group
     */
    @Override
    public Group selectOneGroup(Group group)
    {
        return groupMapper.selectOneGroup(group);
    }

    /**
     * 新增fo_group
     * 
     * @param group fo_group
     * @return 结果
     */
    @Override
    public int insertGroup(Group group)
    {
        return groupMapper.insertGroup(group);
    }

    /**
     * 修改fo_group
     * 
     * @param group fo_group
     * @return 结果
     */
    @Override
    public int updateGroup(Group group)
    {
        return groupMapper.updateGroup(group);
    }

    @Override
    public int updateGroupCondition(Group group, Group groupCondition)
    {
        return groupMapper.updateGroupCondition(group, groupCondition);
    }

    /**
     * 批量删除fo_group
     * 
     * @param ids 需要删除的fo_group主键
     * @return 结果
     */
    @Override
    public int deleteGroupByIds(Long[] ids)
    {
        return groupMapper.deleteGroupByIds(ids);
    }

    /**
     * 删除fo_group信息
     * 
     * @param id fo_group主键
     * @return 结果
     */
    @Override
    public int deleteGroupById(Long id)
    {
        return groupMapper.deleteGroupById(id);
    }

    /**
     * 条件删除fo_group
     *
     * @param group fo_group
     * @return 结果
     */
    @Override
    public int deleteGroupByCondition(Group group)
    {
        return groupMapper.deleteGroupByCondition(group);
    }

}
